Templates

Templates provide an easy way to load new documents which already contain text and tags you commonly use in your documents.

The following Chuck's Diner example illustrates the use of templates.  For instance, assume you always use an image and an italicized caption below it as the top of every page in the Chuck's Diner web site (see the following HTML document).

<HTML>
<HEAD>
   <TITLE>
Chuck's Diner</TITLE>
</HEAD>
<BODY BACKGROUND="backgrnd.gif" TEXT=#000088 LINK=#0000FF>
<CENTER>
   <IMG src="header.gif" WIDTH=500 HEIGHT=50><BR>
   <I>
Open 24 Hours a Day!</I><BR><BR>
   <!-- Put content here -->
</CENTER>
</BODY>
</HTML>

Whenever you want to create a new page, you could use something like the above as a template.  It already has Chuck's Diner specified as the title of the page as well as the site's standard text colors and background image defined.  It also already contains the code for the header of the page which consists of the image and the Open 24 Hours a Day!

Creating the Template

Once you have made a template such as the one shown above and wish to save it for future use, all you have to do is save the document as an HTML file in the Template folder found in the Spider Writer folder.  Usually this path is:

C:\Program Files\Actipro Software\Spider Writer\Template\

To make saving a template easy, use the Save As Template feature on the File menu.  Enter the name of the template (without a file extension) in the dialog box and your template will be saved.

Recalling the Template

When you wish to create a new document using this template, open the File menu and click the New option.  This will open up the New Document dialog box which allows you to create new documents from several wizards and hardcoded templates or from your own saved templates.  If you have any HTML files saved in the Template folder, they will appear in the listbox for the User-Defined Templates tab.  Simply highlight one and click the OK button to create a new document using that template.